package com.bawei.es.service;

import com.bawei.common.core.domain.R;
import com.bawei.system.domain.vo.IndexInfo;

import java.util.Map;

public interface EsIndexService {
    R<Boolean> indexCreate(String indexName);

    R<Boolean> indexExit(String indexName);

    R<Boolean> indexDelete(String indexName);

    R<Boolean> indexCreateWithMapping(String indexName, String indexMapping);

    R<Map> indexGetMapping(String indexName);

    void  createEsStyle(IndexInfo indexInfo);

}
